<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <script type="text/javascript" >
    	let user={
    	    id:111,
            name:'33',
            age:22,
            show(){
    	        console.log("hello")
            }
        };

        let key =Object.keys(user);
        let value = Object.values(user);
    	key.forEach(k=> console.log(k+":"+user[k]))
    </script>
</body>
</html>